﻿using System;
using System.Windows.Data;
using Hibiku.Twitter;

namespace Hibiku.ValueConverters
{
    public class LocationToTextConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var location = value as Location;

            if (location != null)
            {
                return "Located.";
            }
            else
            {
                return "No location.";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
